xencommons: write domain 0's domid to xenstore
authorMatthew Daley <mattjd@gmail.com>
Thu, 31 Oct 2013 06:03:55 +0000 (19:03 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 20:59:34 +0000 (20:59 +0000)
commit02ebea7768fe723deaa56c2cfcb860874544b47d
treeaddd962c2eb931f12ee45dd36454c17ee9b713c7
parentfe2367b1ebe165c06cf10d4730e254e736396182
xencommons: write domain 0's domid to xenstore

libvchan's init_xs_srv (server-side xenstore-related initialization)
expects to find the current domain's domid at this xenstore key. libxl
(and xend) write this for domains they create. Do the same for domain 0,
allowing the use of libvchan in dom0.

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/init.d/xencommons
tools/hotplug/NetBSD/rc.d/xencommons